package cn.tedu;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class Demo05 {
    public static void main(String[] args) throws SQLException {
        //1.创建链接对象
        try (Connection conn = DBUtils.getConn()) {
            Statement s=conn.createStatement();
            s.execute("create table hero(id int primary key auto_increment,name varchar(20),money int)");
        }catch (SQLException throwables){
            throwables.printStackTrace();
        }
        System.out.println("执行完毕");
    }
}
